package com.ys.entity.bi;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_report].[dbo].BI_FlowAnalysis", catalog="Id")
public class BiFlowAnalysis extends BaseEntity<BiFlowAnalysis> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="FinancialTransactionTypeBid", nameJava="financialTransactionTypeBid", typeDataBase="varchar")
	private String financialTransactionTypeBid;
	@YsField(nameDataBase="StatDate", nameJava="statDate", typeDataBase="varchar")
	private String statDate;
	@YsField(nameDataBase="StatDateType", nameJava="statDateType", typeDataBase="tinyint")
	private Integer statDateType;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="DataType", nameJava="dataType", typeDataBase="tinyint")
	private Integer dataType;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public BiFlowAnalysis setId(Long id) {
		this.id = id;
		return this;
	}
	public String getFinancialTransactionTypeBid() {
		return financialTransactionTypeBid;
	}
	public BiFlowAnalysis setFinancialTransactionTypeBid(String financialTransactionTypeBid) {
		this.financialTransactionTypeBid = financialTransactionTypeBid;
		return this;
	}
	public String getStatDate() {
		return statDate;
	}
	public BiFlowAnalysis setStatDate(String statDate) {
		this.statDate = statDate;
		return this;
	}
	public Integer getStatDateType() {
		return statDateType;
	}
	public BiFlowAnalysis setStatDateType(Integer statDateType) {
		this.statDateType = statDateType;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public BiFlowAnalysis setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public Integer getDataType() {
		return dataType;
	}
	public BiFlowAnalysis setDataType(Integer dataType) {
		this.dataType = dataType;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public BiFlowAnalysis setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public BiFlowAnalysis setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public BiFlowAnalysis setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static BiFlowAnalysis biFlowAnalysis(
		String financialTransactionTypeBid,
		String statDate,
		Integer statDateType,
		BigDecimal amount,
		Integer dataType,
		Integer status
			) {
		BiFlowAnalysis entity = new BiFlowAnalysis();
		entity.setFinancialTransactionTypeBid(financialTransactionTypeBid);
		entity.setStatDate(statDate);
		entity.setStatDateType(statDateType);
		entity.setAmount(amount);
		entity.setDataType(dataType);
		entity.setStatus(status);
		return entity;
	}
}